package com.dao;

import java.sql.SQLException;
import java.util.List;

import com.entity.Student;
import com.tools.Page;

public interface IStudentDao extends IBaseDao{

	/**
	 * 存储学生
	 * @param student
	 * @return
	 */
	boolean save(Student student) throws SQLException;

	/**
	 * 修改学生
	 * @param student
	 * @return
	 */
	boolean update(Student student) throws SQLException;

	/**
	 * 查看一个学生
	 * @param school
	 * @return
	 */
	Student findById(String id) throws SQLException;

	/**
	 * 删除一个学生
	 * @param school
	 * @return
	 */
	boolean deleteById(String id) throws SQLException;

	/**
	 * 分页查看所有学生
	 * @param school
	 * @return
	 */
	List<Student> getList(Page page) throws SQLException;

	/**
	 * 统计记录数
	 * @param school
	 * @return
	 */
	long count() throws SQLException;

}